Skip to content

Invert use of macro_can_be_placed argument in check_all_legality #2998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 30, 2025

Conversation

gigeresk
Copy link
Contributor

@gigeresk gigeresk commented Apr 23, 2025

The use of the check_all_legality function parameter was the inverse of what was documented.

Description

The check_all_legality parameter performs additional legality checks regarding macro placement.
Invert the use of the value and the value itself in most cases. Some uses are unchanged because they were initially incorrect.

Related Issue

None

Motivation and Context

Improves code clarity and reverts to expected behaviour.

How Has This Been Tested?

TODO: run qor and test suite

Types of changes

  • Bug fix (change which fixes an issue)

Checklist:

  • All new and existing tests passed

@gigeresk gigeresk added the bug Incorrect behaviour label Apr 23, 2025
@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels Apr 23, 2025
@gigeresk gigeresk force-pushed the fredt_check_all_legality_flip branch from bdc8c45 to 08c1809 Compare April 23, 2025 19:48
Copy link
Contributor

@AlexandreSinger AlexandreSinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor comments. Overall this change looks good to me! Thank you so much for fixing this!

@gigeresk gigeresk marked this pull request as ready for review April 30, 2025 15:51
@gigeresk gigeresk merged commit 994d7de into master Apr 30, 2025
36 checks passed
@gigeresk gigeresk deleted the fredt_check_all_legality_flip branch April 30, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behaviour lang-cpp C/C++ code VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants